package com.ververica.cdc.guass.source.kafka.data;

import java.io.Serializable;

public class NullableValue<T> implements Serializable {

    private T value;
    private boolean exists;

    public NullableValue(T value, boolean exists) {
        this.value = value;
        this.exists = exists;
    }

    public T getValue() {
        return value;
    }

    public boolean isExists() {
        return exists;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public void setExists(boolean exists) {
        this.exists = exists;
    }
}
